<template>
  <div >
    支付页面

  </div>
</template>

<script>
import {getpagehtml} from "../../api/doctor/zfb";

export default {
    name:"Zfb",
    data(){
        return{
            pagehtml:{}
        }
    },mounted(){
       let i = this.$route.query.i
       let registrationId =JSON.parse(this.$route.query.reg).registrationId
       let price =JSON.parse(this.$route.query.reg).dzmHisRegisteredfee.registeredfeeAggregateAmount
       let name;
       if(i==1){
        //退款
           name = '退款（挂号费）'
       }else{
        //付款
           name = '付款（挂号费）'
       }
       getpagehtml({pc:"pc",i:i,registrationId:registrationId,name:name,price:price}).then(re=>{
         document.write(re.pageHtml)
       })
    }
}
</script>

<style>

</style>